lastNotNullOf

inline fun <T, R : Any> Array<out T>.lastNotNullOf(transform: (T) -> R?): R(source)
inline fun <T, R : Any> Iterable<T>.lastNotNullOf(transform: (T) -> R?): R(source)
inline fun <T, R : Any> Iterator<T>.lastNotNullOf(transform: (T) -> R?): R(source)
inline fun <T, R : Any> List<T>.lastNotNullOf(transform: (T) -> R?): R(source)
inline fun <T, R : Any> Sequence<T>.lastNotNullOf(transform: (T) -> R?): R(source)

Returns the last non-null element produced by transform function or throws NoSuchElementException otherwise.